package com.auth.manager.common.resp;

/**
 * @version 1.0.0
 * @Date: 2022/4/27 14:46
 * @Author ZhuYouBin
 * @Description 统一响应结果枚举类
 */
public enum ResultEnum {
    SUCCESS(20000, "SUCCESS"),
    FAILED(50000, "FAILED"),
    METHOD_PARAMETER(50001, "Method Parameter Error")
    ;

    /***************************** member variable ******************************/
    // 错误代码
    private Integer code;
    // 错误提示信息
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    /***************************** setter and getter ******************************/
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
